import request from '@/utils/request'

// 查询平台权益佣金列表
export function listOrderCommission(query) {
  return request({
    url: '/system/orderCommission/list',
    method: 'get',
    params: query
  })
}

// 查询平台权益佣金详细
export function getOrderCommission(id) {
  return request({
    url: '/system/orderCommission/' + id,
    method: 'get'
  })
}

// 新增平台权益佣金
export function addOrderCommission(data) {
  return request({
    url: '/system/orderCommission',
    method: 'post',
    data: data
  })
}

// 修改平台权益佣金
export function updateOrderCommission(data) {
  return request({
    url: '/system/orderCommission',
    method: 'put',
    data: data
  })
}

// 删除平台权益佣金
export function delOrderCommission(id) {
  return request({
    url: '/system/orderCommission/' + id,
    method: 'delete'
  })
}
